home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 120
/
Vol 120.iso
/
games
/
magic_ba.swf
/
scripts
/
DefineSprite_158
/
frame_2
/
DoAction.as
Wrap
Text File
|
2010-11-09
|
625b
|
21 lines
nowshooting = eval("_root.ball" add _root.totalballs);
setProperty(nowshooting, _Y, getProperty(nowshooting, _Y) - 10 + _root.gamelevel / 3);
_root.ontheair = 10;
if(getProperty(nowshooting, _Y) < getProperty(_root.roofball, _Y) + 25)
{
setProperty(nowshooting, _Y, getProperty(_root.roofball, _Y));
gotoAndPlay(10);
}
shoottest = 1;
while(shoottest < _root.totalballs)
{
nowtestingball = "_root.ball" add shoottest;
if(nowshooting.hitTest(nowtestingball))
{
setProperty(nowshooting, _Y, getProperty(nowtestingball, _Y) + 25);
gotoAndPlay(10);
}
play();
shoottest++;
}